Skip to main content

ARC Publishing

  • a. General Documentation about ARC
  • b. Details about configuration with La Tercera
  • c. Prepare your local environment to do tests with ARC
  • d. Extra information

a. General Documentation about ARC

  • public_api_identity_20200604.rar:

https://gitlab.com/-/ide/project/publicala/general/tree/master/-/product/components/farfalla/uploads/c6dc0c967dc3d9b0c85672718eb2e947/public_api_identity_20200604.rar/

  • arc_publishing_api.zip:

https://gitlab.com/-/ide/project/publicala/general/tree/master/-/product/components/farfalla/uploads/9b72dc1039971360ceb6b9d646b33aa6/arc_publishing_api.zip/

b. Details about configuration with La Tercera

"userName": "fgilio",
"credentials": "7y-TW_-MpN3pi_jvGunWHPorJ",

Facebook test accounts

Jayden Aleaggehccida Bushakman  101646888237839 ehdbmibsha_1590163203@tfbnw.net
Tyler Aleagfjecdfha Occhinoescu 101969721538379 yyouyofcjj_1590163197@tfbnw.net
James Aleagbcfffccj Smithsky 102671171467005 jjxtlvlxkj_1590163199@tfbnw.net
Susan Aleadcfkigfi Yangsky 112623017128898 tygimwpksk_1590163201@tfbnw.net
Open Graph Test User 107642566895467 open_zhnmgnh_user@tfbnw.net

The password for all accounts is dfg567Ht4df89. (with the dot)
  • Test en testcopesa
  1. https://testcopesa.publica.la
  2. https://testcopesa.publica.la/auth/social/arc_publishing_facebook/callback
  3. https://testcopesa.publica.la/auth/social/arc_publishing_google/callback

Social logins

Facebook and Google social logins redirect URLs: Producción:

- https://app.publica.la/auth/social/arc_publishing_facebook/callback
- https://app.publica.la/auth/social/arc_publishing_google/callback
- https://testcopesa.publica.la/auth/social/arc_publishing_facebook/callback
- https://testcopesa.publica.la/social/arc_publishing_google/callback
- https://kiosco.latercera.com/auth/social/arc_publishing_facebook/callback
- https://kiosco.latercera.com/auth/social/arc_publishing_google/callback

We are not using the app.publica.la ones, because everything goes directly to the corresponding tenant. We may either ask them to remove those two URLs, or change the way this works so that we always to the app.publica.la -> tenant.com redirect.

Staging:

- https://stagingapp.publica.la/auth/social/arc_publishing_facebook/callback
- https://stagingapp.publica.la/auth/social/arc_publishing_google/callback

c. Prepare your local environment to do tests with ARC

To do tests in your local, follow these steps:

  1. You need to edit your hosts file and point staginapp.publica.la to your local farfalla IP, like this:
# Add this line to /etc/hosts
127.0.0.1 stagingapp.publica.la

Note: stagingapp.publica.la is the subdomain configured in ARC to do tests.

  1. You need to add stagingapp.publica.la as the final_domain of tenant 1 in the tenants table and run this command in the project root folder:

valet link stagingapp.publica.la

  1. Is mandatory use this configuration in dashboard/settings#advanced in the Users section, replace the custom_socialite_providers json:
"custom_socialite_providers": {
"arc_publishing_google": {
"enabled": true,
"redirect": "https://stagingapp.publica.la/auth/social/arc_publishing_google/callback",
"client_id": "5397844116-r1vl5s95uupim2qu21q7tdhpp30v5uhr.apps.googleusercontent.com",
"client_secret": null,
"api_subdomain_fragment": "api-copesa-la-ternera-sandbox"
},
"arc_publishing_facebook": {
"enabled": true,
"redirect": "https://stagingapp.publica.la/auth/social/arc_publishing_facebook/callback",
"client_id": "681004598937061",
"client_secret": null,
"api_subdomain_fragment": "api-copesa-la-ternera-sandbox"
},
"arc_publishing_password": {
"enabled": true,
"redirect": null,
"client_id": "api-copesa-la-ternera-sandbox",
"client_secret": "SOBTNUVS1L1FRUDLP18NQSP9VE3C3NIIl8/ioEgpfgLNXkMFiKez1l5QVmpyjeATgCEf8PZB",
"api_subdomain_fragment": "api-copesa-la-ternera-sandbox"
}
}

Note: If you try to change some these values, it wont work. It's important to Facebook and Google keep the same CLIENT_ID because this value is used for Arc to be sure where is from the callback.

If you don't keep those values, Arc will return a response like this:

{
"httpStatus": 401,
"code": "300040",
"message": "Invalid username or password"
}

Now you can test trying login or register by an email or password. (https://stagingapp.publica.la/auth/login).

  • If you want to try with Facebook, we have to talk with La Tercera, so they can enable us the Facebook account with the URL callback and client_id (in case they have not changed that).
  • If you want to try with Google, you can do that without problem.

d. Extra information


X

Graph View